//
//  PreferentialInformationDetailViewController.h
//  CPICMobileServiceApp
//
//  Created by lizhiwei on 13-2-17.
//  Copyright (c) 2013年 lizhiwei. All rights reserved.
//
//

#import <UIKit/UIKit.h>
#import "ASIHTTPRequest.h"
#import "MBProgressHUD.h"
#import "SinaWeibo.h"
#import "SinaWeiboRequest.h"
#import <TencentOpenAPI/TencentOAuth.h>

@interface PreferentialInformationDetailViewController : UIViewController<UITableViewDataSource,UITableViewDelegate,SinaWeiboDelegate, SinaWeiboRequestDelegate,TencentSessionDelegate>
{
    UILabel * titleLabel;
    NSString *code_id;
    NSString *img_Url;
    BOOL showProgress;
    MBProgressHUD* progress;
    UITextView * detailcontent;
    UIImageView * BigImage;
    
    NSString *beginDate;
    NSString *endDate;
    NSString *contextImgUrl;
    NSString *detailInfo;
    NSString *title;
    
    UITableView *TableDetail;
    NSInteger IRow;
    
    
    UIScrollView *imageScrollView;
    
    BOOL isImage;
    BOOL isContent;
    BOOL bindingQQ;//YES 表示已经绑定的了,NO表示还没绑定
    //sinaweibo
    NSDictionary *userInfo;
    NSArray *statuses;
    NSString *postStatusText;
    NSString *postImageStatusText;
    //sinaweibo
    
    //qq
    TencentOAuth* _tencentOAuth;
    NSMutableArray* _permissions;
    NSString *QQAccessToken;
    NSString *QQopenId;
    //qq
    
    NSString *strShareContent;//要分享的内容
    NSString *strInsuranceTitle;//要分享的标题
    NSString  *ImgUrl;//要分享的图片地址
    UIImage *imageDown;//要分享的图片
}

@property (nonatomic,retain) UILabel * titleLabel;
@property(nonatomic,retain)  NSString *code_id;
@property(nonatomic,retain)  NSString *img_Url;
@property (strong, nonatomic) MBProgressHUD* progress;
@property(nonatomic,retain)UITextView * detailcontent;
@property(nonatomic,retain)UIImageView * BigImage ;

-(void)setRequest;//向太保移动平台发送请求报文
-(id)initView:(NSString *)codeID;
@end
